package com.day18.TxtArrayListDemo;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class TxtArrayListDemo {
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new FileReader("myJava\\TxtArrayListDemo.java"));
        ArrayList<String> array = new ArrayList<String>();
        String Line;
        while((Line=br.readLine())!=null){
            array.add(Line);
        }
        br.close();
        for(String s:array){
            System.out.println(s);
        }
    }
}
